package org.jeecg.modules.online.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.jeecgframework.poi.excel.annotation.Excel;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@Entity
@Table(name = "CS_DIAGRAM_FIELD_CONFIG")
@TableName("CS_DIAGRAM_FIELD_CONFIG")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "图表字段配置对象", description = "图表字段配置")
public class DiagramFieldConfiguration extends BaseEntity implements Serializable {

	private static final long serialVersionUID = -5009925794758375152L;

	@Excel(name = "图表code", width = 15)
	@ApiModelProperty(value = "图表code")
	@Column(name = "DIAGRAM_CODE")
	@TableField(value = "DIAGRAM_CODE")
	private String diagramCode;// "27accd782f98c41eae5fad1b0514238d"

	@Excel(name = "字段名", width = 15)
	@ApiModelProperty(value = "字段名")
	@Column(name = "FIELD_NAME")
	private String fieldName;// "id"

	@Excel(name = "字段文本", width = 15)
	@ApiModelProperty(value = "字段文本")
	@Column(name = "FIELD_TXT")
	private String fieldTxt;// "id"

	@Excel(name = "排序", width = 15)
	@ApiModelProperty(value = "排序")
	@Column(name = "ORDER_NUM")
	private Integer orderNum;// 1

	@Excel(name = "字段类型", width = 15)
	@ApiModelProperty(value = "字段类型")
	@Column(name = "FIELD_TYPE")
	private String fieldType;// "String"

	@Excel(name = "是否显示", width = 15)
	@ApiModelProperty(value = "是否显示")
	@Column(name = "IS_SHOW")
	private Integer isShow;// 0：否；1：是

	@Excel(name = "计算总计", width = 15)
	@ApiModelProperty(value = "计算总计")
	@Column(name = "IS_TOTAL")
	private Integer isTotal;// 0：否；1：是

	@Excel(name = "是否查询", width = 15)
	@ApiModelProperty(value = "是否查询")
	@Column(name = "SEARCH_FLAG")
	private Integer searchFlag;// 0：否；1：是

	@Excel(name = "查询模式", width = 15)
	@ApiModelProperty(value = "查询模式")
	@Column(name = "SEARCH_MODE")
	private String searchMode;// "group"

	@Excel(name = "字典Code", width = 15)
	@ApiModelProperty(value = "字典Code")
	@Column(name = "DICT_CODE")
	private String dictCode;// ""

	@Excel(name = "字段链接", width = 15)
	@ApiModelProperty(value = "字段链接")
	@Column(name = "FIELD_HREF")
	private String fieldHref;// null

	@Excel(name = "替换值", width = 15)
	@ApiModelProperty(value = "替换值")
	@Column(name = "REPLACE_VAL")
	private String replaceVal;// null

}
